package com.qsmx.store.app.main.home;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatTextView;
import android.view.View;

import com.qsmx.store.app.R;
import com.qsmx.store.app.R2;
import com.qsmx.store.app.event.HomeUnLockEvent;
import com.qsmx.store.core.delegates.AtmosDelegate;

import org.greenrobot.eventbus.EventBus;

import butterknife.BindView;
import butterknife.OnClick;

public class HomeLockedDelegate extends AtmosDelegate {

    @BindView(R2.id.tv_into_system)
    AppCompatTextView tvInfoSystem;

    @OnClick(R2.id.tv_into_system)
    void intoSystem() {
        EventBus.getDefault().post(new HomeUnLockEvent(new Bundle()));
        getSupportDelegate().pop();
    }

    @Override
    public Object setLayout() {
        return R.layout.delegate_home_locked;
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, View rootView) {

    }
}
